package com.our.sys.project1.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

import com.our.sys.orm.hibernate.AuditableEntity;

/**
 * 营业执照
 * @author acer
 *
 */
@Entity
@Table(name = "B_Businesslicence")
public class Businesslicence extends AuditableEntity implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -8076738198755313207L;
    @ViewField
    private Long supplierId;
    @ViewField(header = "供应商名称", width = 200, align = "left")
    private String supplier;
    @ViewField(header = "营业执照副本编号", width = 200, align = "left")
    private String copyNo;
    @ViewField(header = "营业执照注册号", width = 200, align = "left")
    private String registerNo;
    @ViewField(header = "地址", width = 300, align = "left")
    private String address;
    @ViewField(header = "注册资本", width = 200, align = "left")
    private BigDecimal registerMoney;
    @ViewField(header = "法人代表", width = 200, align = "left")
    private String person;
    @ViewField(header = "公司类型", width = 200, align = "left")
    private String companyType;
    @ViewField(header = "经营范围", width = 200, align = "left")
    private String businessRange;
    @ViewField(header = "成立日期", width = 200, align = "left")
    private String setUpDate;
    @ViewField(header = "营业期限", width = 200, align = "left")
    private String businessLast;
    @ViewField(header = "年度检验", width = 200, align = "left")
    private String yearCheck;
    @ViewField(header = "拼音助记符", width = 100, align = "left")
    private String py;
    @ViewField(header = "五笔助记符", width = 100, align = "left")
    private String wb;
    @ViewField
    private String imgSrc;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_Businesslicence")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getCopyNo() {
        return copyNo;
    }

    public void setCopyNo(String copyNo) {
        this.copyNo = copyNo;
    }

    public String getRegisterNo() {
        return registerNo;
    }

    public void setRegisterNo(String registerNo) {
        this.registerNo = registerNo;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BigDecimal getRegisterMoney() {
        return registerMoney;
    }

    public void setRegisterMoney(BigDecimal registerMoney) {
        this.registerMoney = registerMoney;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getCompanyType() {
        return companyType;
    }

    public void setCompanyType(String companyType) {
        this.companyType = companyType;
    }

    public String getBusinessRange() {
        return businessRange;
    }

    public void setBusinessRange(String businessRange) {
        this.businessRange = businessRange;
    }

    public String getSetUpDate() {
        return setUpDate;
    }

    public void setSetUpDate(String setUpDate) {
        this.setUpDate = setUpDate;
    }

    public String getBusinessLast() {
        return businessLast;
    }

    public void setBusinessLast(String businessLast) {
        this.businessLast = businessLast;
    }

    public String getYearCheck() {
        return yearCheck;
    }

    public void setYearCheck(String yearCheck) {
        this.yearCheck = yearCheck;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public String getWb() {
        return wb;
    }

    public void setWb(String wb) {
        this.wb = wb;
    }

    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

}
